//
//  BookPreviewMarkCell.m
//  HelpThePoor
//
//  Created by ldc on 2018/4/20.
//  Copyright © 2018年 van7ish. All rights reserved.
//

#import "BookPreviewMarkCell.h"

@implementation BookPreviewMarkCell
@synthesize bookImage,markImage;
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        bookImage = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.width,self.height )];
        bookImage.contentMode =  UIViewContentModeScaleAspectFit;
        [self.contentView addSubview:bookImage];
        
        markImage = [[UIImageView alloc] initWithFrame:CGRectMake(self.width-20, -2, 15,15 )];
        markImage.image = [UIImage imageNamed:@"选择书签"];
        [self.contentView addSubview:markImage];
        
    }
    return self;
}

-(void)setData:(id)data{
    [bookImage sd_setImageWithURL:[NSURL URLWithString:data] placeholderImage:[UIImage imageNamed:@"placeholdershuji"]];
}

@end
